package com.alvin.builder.msg;

import java.util.Date;

public class Message {
	private String from;
	private String to;
	private Date date;
	private String title;
	private String body;
	
	public final void send() {
		System.out.println("From:" + this.getFrom());
		System.out.println("To:" + this.getTo());
		System.out.println("Date:" + this.getDate());
		System.out.println("Title:" + this.getTitle());
		System.out.println("Body:" + this.getBody());
	}
	
	public String getFrom() {
		return from;
	}

	public void setFrom(String from) {
		this.from = from;
	}

	public String getTo() {
		return to;
	}

	public void setTo(String to) {
		this.to = to;
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getBody() {
		return body;
	}

	public void setBody(String body) {
		this.body = body;
	}
}
